package ModelLayer;


/**
 * Eployee is a subclass of the class Person, it gets a additional attribute, Salaryaccount.
 * 
 * @author Team Black 
 * @version 1.0
 */
public class Employee extends Person
{
    private String salaryAccount;
    
    public Employee( String _name, String _adress, String _zipCode, String _phoneNr, String _salaryAccount)
    {
          super( _name, _adress, _zipCode, _phoneNr);
          salaryAccount = _salaryAccount;
    }
    /**
     * stores a salary account
     */
    public void setSalaryAccount(String _salaryAccount)
    {
        salaryAccount = _salaryAccount;
    }
    /**
     * Retrieve a stored Salary account
     */
    public String getSalaryAccount()
    {
        return salaryAccount;
    }
}
